import request from 'request'
// 得到
export function getRoleList (params) {
  return request({
    url: '/sys/role',
    params
  })
}
// 得到员工详情
export function reviseRoleList (id) {
  return request({
    url: `/sys/user/${id}`
  })
}

// 更新权限
export function assignRoles (data) {
  return request({
    url: '/sys/user/assignRoles',
    data,
    method: 'put'
  })
}
